<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>知识产权列表</title>
    <link href="/ip/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/ip/Public/css/mystyle.css" rel="stylesheet">
</head>

<body>
    <div class="container">
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <a class="navbar-brand" href="#">
                    
                </a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="/ip/index.php/Home/Index/index">主页</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">专利市场<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="/ip/index.php/Home/Info/allInfo/type/1">查看全部专利</a></li>
                            <li role="separator" class="divider"></li>
                            <?php if(is_array($cateList1)): $i = 0; $__LIST__ = $cateList1;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$a): $mod = ($i % 2 );++$i;?><li><a href="/ip/index.php/Home/Info/allInfo/type/1/ctype/<?php echo ($a["id"]); ?>"><?php echo ($a["cate_name"]); ?></a></li><?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">商标市场<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="/ip/index.php/Home/Info/allInfo/type/2">查看全部商标</a></li>
                            <li role="separator" class="divider"></li>
                            <?php if(is_array($cateList2)): $i = 0; $__LIST__ = $cateList2;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$a): $mod = ($i % 2 );++$i;?><li><a href="/ip/index.php/Home/Info/allInfo/type/2/ctype/<?php echo ($a["id"]); ?>"><?php echo ($a["cate_name"]); ?></a></li><?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                        </ul>
                    </li>
                    <li><a href="/ip/index.php/Home/Page/help">帮助中心</a></li>
                    <li><a href="/ip/index.php/Home/Page/connection">联系我们</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <?php if(isset($_SESSION['nickname'])): ?><a href="/ip/index.php/Home/User/login">欢迎:<?php echo (session('nickname')); ?></a>
                            <?php else: ?>
                            <a href="/ip/index.php/Home/User/login">登录</a><?php endif; ?>
                    </li>
                    <li>
                        <?php if(isset($_SESSION['nickname'])): ?><a href="/ip/index.php/Home/User/logout">退出</a>
                            <?php else: ?>
                            <a href="/ip/index.php/Home/User/register">注册</a><?php endif; ?>
                    </li>
                    <li><a href="/ip/index.php/Home/Release/index">发布信息</a></li>
                </ul>
                <form class="navbar-form navbar-right" role="search" method="get" action="/ip/index.php/Home/Info/searchInfo/" >
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search" name="keyword" required>
                    </div>
                    <button type="submit" class="btn btn-default">查询</button>
                </form>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>
</div>
<!-- Mainly scripts -->
<script src="/ip/Public/js/jquery-2.1.1.js"></script>
<script src="/ip/Public/js/bootstrap.min.js"></script>
    <div class="container">
        <?php if($count > 0 ): ?><div class="alert alert-info alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                您好，“<strong><?php echo ($keyword); ?></strong>”相关的知识产权有<strong><?php echo ($count); ?></strong>条。
            </div>
            <table class="table table-hover table-condensed">
                <thead>
                    <tr>
                        <th>
                            编号
                        </th>
                        <th>
                            名称
                        </th>
                        <th>
                            类别
                        </th>
                        <th>
                            查看
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <?php if(is_array($infoList)): $i = 0; $__LIST__ = $infoList;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$a): $mod = ($i % 2 );++$i;?><tr>
                            <td>
                                <a href="/ip/index.php/Home/Info/showInfo/id/<?php echo ($a['id']); ?>"><img height="150" width="200" src="/ip/Public/img/info_ico/<?php echo ($a['picurl']); ?>" /></a>
                            </td>
                            <td>
                                <?php echo ($a['ip_name']); ?>
                            </td>
                            <td>
                                <?php echo ($a['cate_name']); ?>
                            </td>
                            <td>
                                <a href="/ip/index.php/Home/Info/showInfo/id/<?php echo ($a['id']); ?>">查看</a>
                            </td>
                        </tr><?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                </tbody>
            </table>
            <div class="pagination">
                <h1><?php echo ($show); ?></h1>
            </div>
            <script src="/ip/Public/js/jquery.min.js"></script>
            <script src="/ip/Public/js/bootstrap.min.js"></script>
            <script src="/ip/Public/js/scripts.js"></script>
            <?php echo ($page); ?>
            <?php else: ?>
            <div class="alert alert-danger alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                您好，没有查到与“<strong><?php echo ($keyword); ?></strong>”相关的知识产权。
            </div><?php endif; ?>
        <div class="container text-center" >
    <br>
    <hr style="border-width: 3px medium medium; border-style: double none none; border-color: #6A9BBB currentColor currentColor; border-image: none; height: 3px;">
    <p>
    	知识产权交易平台© 2012 版权所有 All Rights Reserved.|粤ICP备13046622号-1<br>
		广州市龙口东路36号 电话：（+86 020）38203118 传真（+86 020）38203118转611 
    </p>
</div>
        <!-- Mainly scripts -->
        <script src="/ip/Public/js/jquery-2.1.1.js"></script>
        <script src="/ip/Public/js/bootstrap.min.js"></script>
</body>

</html>